import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		while(true){
            int num=sc.nextInt();
		int begin=sc.nextInt();
		int end=sc.nextInt();
		
		StringBuilder sb=new StringBuilder();
		for(int i=0;i<num;i++){
			sb.append(i);
		}
		System.out.println(sb.substring(begin,end));
	}
        }

}
